package com.jhl.seckill.FeignClient;

import com.jhl.seckill.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("SECKILL-GOODS")
public interface GoodsClient {

    @GetMapping("/goods/findGoods")
    GoodsVo findGoodsVobyGoodsId(Long goodsId);

    @GetMapping("/goods/findGoodsVo")
    List<GoodsVo> findGoodsVo();
}
